<template>
  <div>
    <button @click="toBus">A子组件传给兄弟B组件</button>
  </div>
</template>

<script>
import Bus from "@/utils/bus.js";

export default {
  name: "aaa",
  data() {
    return {
        aaa:{
            a:"12",
            b:"34"
        }
    };
  },
  methods: {
    toBus() {
      Bus.$emit("on", this.aaa);
    }
  },
  created() {}
};
</script>

<style scoped>
</style>